<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head th:include="base/include/head">
</head>
<body>
	<form id="winForm">
		<table>
			<tr>
				<td>添加角色：</td>
				<td>
					<select id="addPersonalRoles" class="easyui-combogrid" 
					data-options="
					panelWidth:500,
					panelHeight:300,
					idField:'id',
					textField:'roleName',  
	   	 			pageSize : 10,
	   	 			pagination : true,
	   	 			pageList : [ 10, 20, 50, 100],
	   	 			mode:'remote',
	   	    		url:'../supplier/queryRolesByRoleName',    
			   	    columns:[[    
			   	        {field:'roleName',title:'名称',width:100},
			   	        {field : 'powerType',title : '权限类型',	width : 80,align : 'center',formatter : function(value, row,index) {
								
								if(row.powerType == 'user'){
									return '[ 用户 ]';
								}else if(row.powerType == 'default_user'){
									return '[ 默认用户权限 ]';
								}else if(row.powerType == 'default_sp'){
									return '[ 默认供应商权限 ]';
								}
						}},    
			   	        {field:'roleDesc',title:'描述',width:300},    
			   	    ]]
					" style="width: 200px;" >
					</select>
					<a href="javascript:addRole()" class="easyui-linkbutton" iconCls="icon-add">添加角色</a> 
				</td>
			</tr>
		</table>
	</form>
	<div id="xx" ></div>
</body>
</html>